import util from '../libs/util';
var qs = require('qs');

// 获取代理人列表
export function getAgentList(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/auth_api/get_employee_all',
        method: 'post',
        data:qs.stringify(value)
    })
}
// 获取业绩列表
export function getAchiList(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_list',
        method: 'post',
        data:qs.stringify(value)
    })
}
// 新增业绩
export function createAchi(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/create',
        method: 'post',
        data:qs.stringify(value)
    })
}
// 更新业绩
export function updateAchi(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/update',
        method: 'post',
        data:qs.stringify(value)
    })
}

//获取单条业绩
export function getDetail(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_detail',
        method: 'post',
        data:qs.stringify(value)
    })
}


// 删除业绩
export function delAchi(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/del',
        method: 'post',
        data:qs.stringify(value)
    })
}

// 财务管理 工资单列表
export function getPayrollList(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_payroll_list',
        method: 'post',
        data:qs.stringify(value)
    })
}



//我的业绩
//累计数据
export function getPerformanceyear(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_employee_performance_year',
        method: 'post',
        data:qs.stringify(values)
    })
}
//获取个人业绩
export function getPerformance(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_performance',
        method: 'post',
        data:qs.stringify(values)
    })
}
//获取指定月份首佣
export function getPerformanceFee(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_performance_fee',
        method: 'post',
        data:qs.stringify(values)
    })
}

//获取手续费全年累计数据
export function getPoundageyear(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_poundage_year',
        method: 'post',
        data:qs.stringify(values)
    })
}

//获取个人业绩
export function getPoundage(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_poundage',
        method: 'post',
        data:qs.stringify(values)
    })
}

//获取员工某月业绩
export function getPerformanceMonth(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/achievement/get_performance_month',
        method: 'post',
        data:qs.stringify(values)
    })
}


//获取员工某月业绩00000000000000000

